//
//  PaletteCoverView.h
//  EraserRubber_2_SaijT
//
//  Created by 丁诚昊 on 15/12/2.
//  Copyright © 2015年 ZSTech.iOS.丁诚昊(831). All rights reserved.
//

#import <UIKit/UIKit.h>

#define PaletteDidPickColorNotification @"PaletteDidPickColorNotification"
#define PalettePickColor @"PalettePickColor"

@protocol paletteDelegate <NSObject>
@optional
- (void)palette:(id<paletteDelegate>)paletteDelegate pickColor:(UIColor *)color;
@end

@interface PaletteView : UIView <paletteDelegate>
- (UIColor*) getPixelColorAtLocation:(CGPoint)point ;
- (CGContextRef) createARGBBitmapContextFromImage:(CGImageRef)inImage;
@property (weak, nonatomic) id<paletteDelegate> delegate;
@end
